<%@ include file="../common/base.jsp" %>
<%@ page contentType= "text/html;charset=utf-8" %>

<table width="100%">
	<tr>
		<td align="right">
			<strong>
				FORM-DR-0386 Rev.A
			</strong>
		</td>
	</tr>
</table>
<c:if test="${not empty Complete}">
<input type="hidden" name="id" value="<c:out value="${product.dataSheet.id}" />">
<input type="hidden" name="product" value="<c:out value="${product.id}" />">
<input type="hidden" name="className" value="com.octopus.optiworks.model.DataSheet">
<input type="hidden" name="step" value="Complete">

<table rules="all" width="100%" bgcolor="#F0F0FF">
	<tr>
		<td>
			Internal PO#:
		</td>
		<td width="20%">
			<input type="text" name="internalPo" value="<c:out value="${product.dataSheet.internalPo}" />">
		</td>
		<td>
			Customer PO#:
		</td>
		<td width="20%">
			<input type="text" name="customerPo" value="<c:out value="${product.dataSheet.customerPo}" />">
		</td>
	</tr>
	<tr>
		<td>
			Internal P/N:
		</td>
		<td>
			<input type="text" name="internalPn" value="<c:out value="${product.dataSheet.internalPn}" />" disabled="disabled">
			<input type="hidden" name="internalPn" value="<c:out value="${product.dataSheet.internalPn}" />">
		</td>
		<td>
			Customer P/N:
		</td>
		<td>
			<input type="text" name="customerPn" value="<c:out value="${product.dataSheet.customerPn}" />">
		</td>
	</tr>
	<tr>
		<td>
			S/N:
		</td>
		<td colspan="3">
			<input type="text" name="sn" value="<c:out value="${product.dataSheet.sn}" />">
		</td>
	</tr>
	<tr>
		<td>
			ITU Channel:
		</td>
		<td colspan="3">
			<input type="text" name="ituChannel" value="<c:out value="${product.dataSheet.ituChannel}" />" disabled="disabled">
		</td>
	</tr>
	<tr>
		<td>
			Channel Passband(nm):
		</td>
		<td>
			+/-<input type="text" name="channelPassband" value="<c:out value="${product.dataSheet.channelPassband}" />" size="16" disabled="disabled">
		</td>
		<td>
			Reflected Wavelength(nm):
		</td>
		<td>
			<input type="text" name="reflectedWavelength" value="<c:out value="${product.dataSheet.reflectedWavelength}" />">
			<input type="hidden" name="reflectedWavelength" value="<c:out value="${product.dataSheet.reflectedWavelength}" />">
		</td>
	</tr>
	<tr>
		<td>
			Passband Insertion Loss(dB):
		</td>
		<td>
			<input type="text" name="passbandInsertionLoss" value="<c:out value="${product.dataSheet.passbandInsertionLoss}" />" disabled="disabled">
			<input type="hidden" name="passbandInsertionLoss" value="<c:out value="${product.dataSheet.passbandInsertionLoss}" />">
		</td>
		<td>
			Reflected Insertion Loss(dB):
		</td>
		<td>
			<input type="text" name="reflectedInsertionLoss" value="<c:out value="${product.dataSheet.reflectedInsertionLoss}" />" disabled="disabled">
			<input type="hidden" name="reflectedInsertionLoss" value="<c:out value="${product.dataSheet.reflectedInsertionLoss}" />">
		</td>
	</tr>
	<tr>
		<td>
			Passband Ripple(dB):
		</td>
		<td>
			<input type="text" name="passbandRipple" value="<c:out value="${product.dataSheet.passbandRipple}" />" disabled="disabled">
			<input type="hidden" name="passbandRipple" value="<c:out value="${product.dataSheet.passbandRipple}" />">
		</td>
		<td>
			Reflected Ripple(dB):
		</td>
		<td>
			<input type="text" name="reflectedRipple" value="<c:out value="${product.dataSheet.reflectedRipple}" />" disabled="disabled">
			<input type="hidden" name="reflectedRipple" value="<c:out value="${product.dataSheet.reflectedRipple}" />">
		</td>
	</tr>
	<tr>
		<td>
			Isolation(Adjacent channel)(dB):
		</td>
		<td>
			<input type="text" name="isolationAdjacentChannel" value="<c:out value="${product.dataSheet.isolationAdjacentChannel}" />" disabled="disabled">
			<input type="hidden" name="isolationAdjacentChannel" value="<c:out value="${product.dataSheet.isolationAdjacentChannel}" />">
		</td>
		<td>
			Reflected Isolation(dB):
		</td>
		<td>
			<input type="text" name="reflectedIsolation" value="<c:out value="${product.dataSheet.reflectedIsolation}" />" disabled="disabled">
			<input type="hidden" name="reflectedIsolation" value="<c:out value="${product.dataSheet.reflectedIsolation}" />">
		</td>
	</tr>
	<tr>
		<td>
			Isolation(Non-Adjacent channel)(dB):
		</td>
		<td>
			<input type="text" name="isolationNonAdjacentChannel" value="<c:out value="${product.dataSheet.isolationNonAdjacentChannel}" />" disabled="disabled">
			<input type="hidden" name="isolationNonAdjacentChannel" value="<c:out value="${product.dataSheet.isolationNonAdjacentChannel}" />">
		</td>
		<td>
			PDL(dB):
		</td>
		<td>
			<input type="text" name="pdl" value="<c:out value="${product.dataSheet.pdl}" />" disabled="disabled">
			<input type="hidden" name="pdl" value="<c:out value="${product.dataSheet.pdl}" />">
		</td>
	</tr>
	<tr>
		<td>
			Return Loss(dB):
		</td>
		<td>
			<input type="text" name="returnLoss" value="<c:out value="${product.dataSheet.returnLoss}" />" disabled="disabled">
			<input type="hidden" name="returnLoss" value="<c:out value="${product.dataSheet.returnLoss}" />">
		</td>
		<td>
			Directivity(dB):
		</td>
		<td>
			<input type="text" name="directivity" value="<c:out value="${product.dataSheet.directivity}" />" disabled="disabled">
			<input type="hidden" name="directivity" value="<c:out value="${product.dataSheet.directivity}" />">
		</td>
	</tr>
	<tr>
		<td>
			Package Dimension(mm):
		</td>
		<td>
			<input type="text" name="packageDimension" value="<c:out value="${product.dataSheet.packageDimension}" />">
		</td>
		<td>
			Operating Temperature(°C):
		</td>
		<td>
			<input type="text" name="operatingTemperature" value="<c:out value="${product.dataSheet.operatingTemperature}" />">
		</td>
	</tr>
	<tr>
		<td>
			Fiber Length(m):
		</td>
		<td colspan="3">
			<input type="text" name="fiberLength" value="<c:out value="${product.dataSheet.fiberLength}" />">
		</td>
	</tr>
	<tr>
		<td>
			Connector Type/Adapter Type:
		</td>
		<td colspan="3">
			<input type="text" name="connectorType" value="<c:out value="${product.dataSheet.connectorType}" />">
		</td>
	</tr>
	<tr>
		<td>
			Fiber type:
		</td>
		<td colspan="3">
			<input type="text" name="fiberType" value="<c:out value="${product.dataSheet.fiberType}" />">
		</td>
	</tr>
	<tr>
		<td>
			Port mark:
		</td>
		<td colspan="3">
			<input type="text" name="portMark" value="<c:out value="${product.dataSheet.portMark}" />">
		</td>
	</tr>
</table>
<div style="float:right;margin-right:10px;">Date:<fmt:formatDate  value="${product.dataSheet.date}" pattern="yyyy-MM-dd HH:mm"/></div>
<shiro:hasPermission name="process:export">
<table width="100%">
	<tr>
		<td align="center">
			<input type="button" value="<fmt:message key='Export' />" onclick="onExport();">
		</td>
	</tr>
</table>
</shiro:hasPermission>
</c:if>

<c:if test="${empty Complete}">
<table rules="all" width="100%">
	<tr>
		<td>
			Internal PO#:
		</td>
		<td width="20%">
			<c:out value="${product.dataSheet.internalPo}" />
		</td>
		<td>
			Customer PO#:
		</td>
		<td width="20%">
			<c:out value="${product.dataSheet.customerPo}" />
		</td>
	</tr>
	<tr>
		<td>
			Internal P/N:
		</td>
		<td>
			<c:out value="${product.dataSheet.internalPn}" />
		</td>
		<td>
			Customer P/N:
		</td>
		<td>
			<c:out value="${product.dataSheet.customerPn}" />
		</td>
	</tr>
	<tr>
		<td>
			S/N:
		</td>
		<td colspan="3">
			<c:out value="${product.dataSheet.sn}" />
		</td>
	</tr>
	<tr>
		<td>
			ITU Channel:
		</td>
		<td colspan="3">
			<c:out value="${product.dataSheet.ituChannel}" />
		</td>
	</tr>
	<tr>
		<td>
			Channel Passband(nm):
		</td>
		<td>
			+/-<c:out value="${product.dataSheet.channelPassband}" />
		</td>
		<td>
			Reflected Wavelength(nm):
		</td>
		<td>
			<c:out value="${product.dataSheet.reflectedWavelength}" />
		</td>
	</tr>
	<tr>
		<td>
			Passband Insertion Loss(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.passbandInsertionLoss}" />
		</td>
		<td>
			Reflected Insertion Loss(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.reflectedInsertionLoss}" />
		</td>
	</tr>
	<tr>
		<td>
			Passband Ripple(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.passbandRipple}" />
		</td>
		<td>
			Reflected Ripple(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.reflectedRipple}" />
		</td>
	</tr>
	<tr>
		<td>
			Isolation(Adjacent channel)(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.isolationAdjacentChannel}" />
		</td>
		<td>
			Reflected Isolation(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.reflectedIsolation}" />
		</td>
	</tr>
	<tr>
		<td>
			Isolation(Non-Adjacent channel)(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.isolationNonAdjacentChannel}" />
		</td>
		<td>
			PDL(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.pdl}" />
		</td>
	</tr>
	<tr>
		<td>
			Return Loss(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.returnLoss}" />
		</td>
		<td>
			Directivity(dB):
		</td>
		<td>
			<c:out value="${product.dataSheet.directivity}" />
		</td>
	</tr>
	<tr>
		<td>
			Package Dimension(mm):
		</td>
		<td>
			<c:out value="${product.dataSheet.packageDimension}" />
		</td>
		<td>
			Operating Temperature(°C):
		</td>
		<td>
			<c:out value="${product.dataSheet.operatingTemperature}" />
		</td>
	</tr>
	<tr>
		<td>
			Fiber Length(m):
		</td>
		<td colspan="3">
			<c:out value="${product.dataSheet.fiberLength}" />
		</td>
	</tr>
	<tr>
		<td>
			Connector Type/Adapter Type:
		</td>
		<td colspan="3">
			<c:out value="${product.dataSheet.connectorType}" />
		</td>
	</tr>
	<tr>
		<td>
			Fiber type:
		</td>
		<td colspan="3">
			<c:out value="${product.dataSheet.fiberType}" />
		</td>
	</tr>
	<tr>
		<td>
			Port mark:
		</td>
		<td colspan="3">
			<c:out value="${product.dataSheet.portMark}" />
		</td>
	</tr>
</table>
<div style="float:right;margin-right:10px;">Date:<fmt:formatDate  value="${product.dataSheet.date}" pattern="yyyy-MM-dd HH:mm"/></div>
</c:if>

<script language="javascript">
function onExport(){
	window.location.href = "./export.o?productId=<c:out value='${product.id}'/>";
}
</script>
